package design.patterns.structural.facade;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/4/1 16:35
 */
public class ComputerFacade {
    private CPU cpu;
    private Memory memory;
    private HardDisk hardDisk;

    public ComputerFacade() {
        cpu = new CPU();
        memory = new Memory();
        hardDisk = new HardDisk();
    }


    public void createComputer(){
        System.out.println("create computer start");
        cpu.create();
        memory.create();
        hardDisk.create();
        System.out.println("create computer finished");
    }
}
